package com.aeroyun.macross.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 资产
 * </p>
 *
 * @author dongjiming
 * @since 2018-08-10
 */
@TableName("cs_asset")
public class Asset extends Model<Asset> {

    private static final long serialVersionUID = 1L;

    /**
     * 资产ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 所属农户
     */
    @TableField("peasant_household_id")
    private Integer peasantHouseholdId;
    /**
     * 资产类型
     */
    @TableField("asset_type")
    private String assetType;
    /**
     * 购置时间
     */
    @TableField("purchase_date")
    private String purchaseDate;
    /**
     * 资产价值
     */
    @TableField("asset_value")
    private String assetValue;
    @TableField("asset_number")
    private String assetNumber;
    /**
     * 资产说明
     */
    @TableField("asset_remarks")
    private String assetRemarks;
    /**
     * 购置渠道
     */
    @TableField("purchase_channel")
    private String purchaseChannel;
    /**
     * 资产品牌
     */
    @TableField("asset_brand")
    private String assetBrand;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPeasantHouseholdId() {
        return peasantHouseholdId;
    }

    public void setPeasantHouseholdId(Integer peasantHouseholdId) {
        this.peasantHouseholdId = peasantHouseholdId;
    }

    public String getAssetType() {
        return assetType;
    }

    public void setAssetType(String assetType) {
        this.assetType = assetType;
    }

    public String getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getAssetValue() {
        return assetValue;
    }

    public void setAssetValue(String assetValue) {
        this.assetValue = assetValue;
    }

    public String getAssetNumber() {
        return assetNumber;
    }

    public void setAssetNumber(String assetNumber) {
        this.assetNumber = assetNumber;
    }

    public String getAssetRemarks() {
        return assetRemarks;
    }

    public void setAssetRemarks(String assetRemarks) {
        this.assetRemarks = assetRemarks;
    }

    public String getPurchaseChannel() {
        return purchaseChannel;
    }

    public void setPurchaseChannel(String purchaseChannel) {
        this.purchaseChannel = purchaseChannel;
    }

    public String getAssetBrand() {
        return assetBrand;
    }

    public void setAssetBrand(String assetBrand) {
        this.assetBrand = assetBrand;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Asset{" +
        "id=" + id +
        ", peasantHouseholdId=" + peasantHouseholdId +
        ", assetType=" + assetType +
        ", purchaseDate=" + purchaseDate +
        ", assetValue=" + assetValue +
        ", assetNumber=" + assetNumber +
        ", assetRemarks=" + assetRemarks +
        ", purchaseChannel=" + purchaseChannel +
        ", assetBrand=" + assetBrand +
        "}";
    }
}
